<?php

namespace App\Models\miniapp;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Category extends Model
{
    use HasFactory;

    public $table = 'miniapp_categories';
    public $timestamps = false;
    public $fillable = [
        'name',
        'hide',
        'orderby',
    ];

    public function goods()
    {
        return $this->hasMany(Goods::class, 'cid', 'id');
    }
}
